package com.foodconflict.util;

import com.opensymphony.xwork2.ActionSupport;

public abstract class ActionBase extends ActionSupport {
	final String SUCCESS = "success";
	final String NONE    = "none";
	final String ERROR   = "error";
	final String INPUT   = "input";
	final String LOGIN   = "login";
	
	private String target;

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	protected String success(String _target)
	{
		setTarget(_target);
		return SUCCESS;
	}
	
	protected String error(String _target)
	{
		setTarget(_target);
		return ERROR;
	}
	
}
